package com.senlan.water.dto.sms;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * 短信模板
 */
@Data
@EqualsAndHashCode
public class ShortMessageTemplateEditDTO implements Serializable {

    @NotNull(message = "id不能为空")
    private Long id;

    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空")
    @Size(max = 50, message = "标题长度不能超过50")
    private String title;

    /**
     * 短信模板
     */
    @NotBlank(message = "短信模板不能为空")
    @Size(max = 1000, message = "短信模板长度不能超过1000")
    private String messageTemplate;

    /**
     * 手机号
     */
    private List<String> phoneList;

    /**
     * 状态 1-启用;0-停用
     */
    @NotNull(message = "状态不能为空")
    @Size(max = 1, message = "状态长度不能超过1")
    private Integer status;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}